(global.webpackJsonp = global.webpackJsonp || []).push([ [ "subpages/pages/newyear-activity/newyear-activity" ], {
    "21d8": function(e, n, o) {
        o.r(n);
        var t = o("d3e5"), i = o("2d45");
        for (var a in i) "default" !== a && function(e) {
            o.d(n, e, function() {
                return i[e];
            });
        }(a);
        o("ab2a");
        var c = o("f0c5"), r = Object(c.a)(i.default, t.b, t.c, !1, null, "7fc32d24", null, !1, t.a, void 0);
        n.default = r.exports;
    },
    "2d45": function(e, n, o) {
        o.r(n);
        var t = o("dd3b"), i = o.n(t);
        for (var a in t) "default" !== a && function(e) {
            o.d(n, e, function() {
                return t[e];
            });
        }(a);
        n.default = i.a;
    },
    ab2a: function(e, n, o) {
        var t = o("e522");
        o.n(t).a;
    },
    d3e5: function(e, n, o) {
        o.d(n, "b", function() {
            return t;
        }), o.d(n, "c", function() {
            return i;
        }), o.d(n, "a", function() {});
        var t = function() {
            this.$createElement, this._self._c;
        }, i = [];
    },
    dd3b: function(e, n, o) {
        (function(e) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var o = {
                components: {},
                data: function() {
                    return {
                        showPage: !1,
                        robFeb: !0,
                        money: 0,
                        animate: !1,
                        List: [],
                        marginTop: 0
                    };
                },
                mounted: function() {
                    this.timer = setInterval(this.scroll, 3e3);
                },
                onLoad: function() {
                    this.$db.get("userId") ? this.checkFebResFunc() : this.showPage = !0;
                },
                onUnload: function() {
                    this.timer && clearInterval(this.timer);
                },
                methods: {
                    checkFebResFunc: function() {
                        var e = this;
                        this.$api.checkFebRes({}, function(n) {
                            "1" == n.code && "已领取" == n.msg ? (e.showPage = !0, e.money = n.data, e.getFebedUser(), 
                            e.robFeb = !1) : e.showPage = !0;
                        });
                    },
                    getFebedUser: function() {
                        var e = this;
                        this.$api.getFebCouList({}, function(n) {
                            "1" == n.code && (e.List = n.data);
                        });
                    },
                    scroll: function() {
                        if (!(this.List.length <= 4)) {
                            var e = this;
                            e.marginTop = "-140rpx", e.animate = !e.animate, setTimeout(function() {
                                e.List.push(e.List[0]), e.List.shift(), e.marginTop = "0", e.animate = !e.animate;
                            }, 2e3);
                        }
                    },
                    useFeb: function() {
                        e.reLaunch({
                            url: "/pages/delivery/delivery"
                        });
                    },
                    startRob: function() {
                        var e = this;
                        this.$api.robFeb({}, function(n) {
                            if ("0" != n.code) "noTip_9937" == n.code ? e.$common.errorToShow(n.msg, function(n) {
                                e.follow();
                            }) : "needLowx" == n.code ? e.$common.errorToShow(n.msg, function(e) {
                                location.href = "weixin://dl/business/?t=TZ0kcghdbAe";
                            }) : e.$common.successToShow(n.msg, function(o) {
                                e.money = n.data, e.getFebedUser(), e.robFeb = !1;
                            }); else if ("暂无活动或活动已结束！" == n.msg.trim()) {
                                var o = Math.round(new Date() / 1e3);
                                o < 1644163200 ? e.$common.errorToShow("活动于2月7日盛大开启，敬请期待！") : o > 1644595199 && e.$common.errorToShow("抱歉活动已结束！");
                            } else e.$common.errorToShow(n.msg);
                        });
                    },
                    follow: function() {
                        e.navigateTo({
                            url: "/subpages/pages/official-account/official-account"
                        });
                    }
                }
            };
            n.default = o;
        }).call(this, o("543d").default);
    },
    e516: function(e, n, o) {
        (function(e) {
            o("98af"), t(o("66fd"));
            var n = t(o("21d8"));
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, e(n.default);
        }).call(this, o("543d").createPage);
    },
    e522: function(e, n, o) {}
}, [ [ "e516", "common/runtime", "common/vendor" ] ] ]);